home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compendium Deluxe 2
/
LSD and 17bit Compendium Deluxe - Volume II.iso
/
a
/
prog
/
misc
/
tds-2.04.lha
/
TDS
/
Install TDS
< prev
next >
Wrap
Text File
|
1994-08-31
|
4KB
|
187 lines
; Installation script for Twilight Development System
; $VER: Install-TDS 2.04 (31.08.94)
(set @default-dest "SYS:")
(set default_lang 2)
(if (< (/ (getversion) 65536) 37)
(abort "This program requires Kickstart 2.04 or greater to run !")
)
(set destdir
(askdir
(prompt "Select where to install TDS")
(help @askdir-help)
(default @default-dest)
(newpath)
)
)
(set @default-dest
(tackon destdir "TDS")
)
(makedir @default-dest
(prompt "Creating Drawer TDS")
(help @makedir-help)
(infos)
)
(copylib
(prompt "Installing Twilight Editor")
(help @copylib-help)
(source "Ted")
(dest @default-dest)
(infos)
)
(copylib
(prompt "Installing Twilight Make")
(help @copylib-help)
(source "TMake")
(dest @default-dest)
(infos)
)
(copylib
(prompt "Installing Twilight Reference Generator")
(help @copylib-help)
(source "TRefs")
(dest @default-dest)
)
(copyfiles
(prompt "Installing Twilight Editor Frontend")
(help @copyfiles-help)
(source "Ed")
(dest @default-dest)
)
(copyfiles
(prompt "Installing Converters")
(help @copyfiles-help)
(source "converters")
(dest (tackon @default-dest "converters"))
(all)
)
(set lang
(askoptions
(prompt "Which languages should be installed ?")
(help @askoptions-help)
(choices "Deutsch"
"English"
"Español"
"Français"
"Italiano")
(default default_lang)
)
)
(makedir (tackon @default-dest "catalogs"))
(set n 0)
(while
(set language
(select n "deutsch"
"english"
"español"
"français"
"italiano"
"")
)
(
(if (IN lang n)
(
(if (<> 1 n)
(
(set catalog_dir (cat "catalogs/" language))
(copyfiles
(prompt "Installing Catalogs")
(source catalog_dir)
(dest (tackon @default-dest catalog_dir))
(all)
)
)
)
)
)
(set n (+ n 1))
)
)
(copyfiles
(prompt "Installing Catalogs Sources")
(help @copyfiles-help)
(source "catalogs/source")
(dest (tackon @default-dest "catalogs/source"))
(all)
)
(makedir (tackon @default-dest "Docs") (infos))
(set n 0)
(while
(set language
(select n "Deutsch"
"English"
"Español"
"Français"
"Italiano"
"")
)
(
(if (IN lang n)
(
(set src_file (cat "Docs/" language ".lzh"))
(set dest_dir (tackon @default-dest (cat "Docs/" language)))
(makedir dest_dir (infos))
(working "Extracting " language " Docs")
(run (cat "lharc >CON: x " src_file " " dest_dir "/"))
)
)
(set n (+ n 1))
)
)
(if
(exists "keyfile")
(copyfiles
(prompt "Installing Keyfile")
(help @copyfiles-help)
(source "keyfile")
(dest @default-dest)
)
)
(copyfiles
(prompt "Installing Icons")
(help @copyfiles-help)
(source "env/tds")
(pattern "#?.info")
(dest "envarc:tds")
)
(if
(askbool (prompt "Do you want to install the example projects ?")
(help "The example projects show how to use the features"
" of the TDS for building new projects."
)
)
(copyfiles
(prompt "Installing Examples")
(help @copyfiles-help)
(source "examples")
(dest (tackon @default-dest "Examples"))
(all)
(infos)
)
)
(startup "TDS"
(prompt "Do you want to modify the user-startup ?")
(help @startup-help)
(command "assign TDS: " @default-dest)
)
(makeassign "TDS" @default-dest)